package com.itstyle.seckill.topic.desinger.design_xw.template_hook;

/**
 * @Auther: liuwenxiang
 * @Date: 2019/9/18 20:35
 * @Description:
 */
public abstract  class HookAbstractClass {


    public abstract void abstractMethod1();

    public abstract void abstractMethod2();

    public abstract void hookMehtod1();

    public boolean  hookMehtod2(){
        return true;
    }

    public void template(){

        abstractMethod1();
        abstractMethod2();
        if(hookMehtod2()){
            hookMehtod1();
        }

    }

}
